import Flutter
import UIKit

@main
@objc class AppDelegate: FlutterAppDelegate {
    override func application(
        _ application: UIApplication,
        didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
    ) -> Bool {
        /*1、设置推送证书.
          2、capability添加推送功能
          3、info.plist添加推送权限
         <key>UIBackgroundModes</key>
         <array>
             <string>remote-notification</string>
         </array>
         4、添加business_plugin插件
         5、添加扩展文件AppDelegate+Ext+Notification
         6、调用getNotification();
         */
        // 请求通知权限
        getNotification();
        GeneratedPluginRegistrant.register(with: self)
        return super.application(application, didFinishLaunchingWithOptions: launchOptions)
    }
    
}
